package com.ipartek.pruebas.bbddaccessP10;

import java.sql.*;

//TXT concrete DAO Factory implementation

public class TxtDAOFactoryP10 extends DAOFactoryP10 {
public static final String DRIVER=
 "COM.cloudscape.core.RmiJdbcDriver";
public static final String DBURL=
 "jdbc:cloudscape:rmi://localhost:1099/CoreJ2EEDB";
// method to create TXT connections

public static Connection createConnection() {
 // Use DRIVER and DBURL to create a connection
 // Recommend connection pool implementation/usage
}
public AlumnoDAOP10 getCustomerDAO() {
 // CloudscapeCustomerDAO implements CustomerDAO
 return new TxtAlumnoDAOP10();
}
public CursoDAOP10 getAccountDAO() {
 // CloudscapeAccountDAO implements AccountDAO
 return new TxtCursoDAOP10();
}

// ...
}